//
//  CCondition.h
//  HCHK_iphone
//
//  Created by yilong zhang on 11-12-13.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#define DB_SELECTITEMS_NUM  10

@interface CCondition : NSObject

@end

//降序
@interface CDesCounter : NSObject
{
@private
}

@property (nonatomic, assign) int m_nOffset;
@property (nonatomic, assign) int m_nLimit;
@property (nonatomic, assign) int m_nTotal;

-(void)InitDesWithCout:(int)count Limit:(int)limit;
-(int)GetDesNextLimit;

@end

//升序
@interface CAscCounter : NSObject
{
@private
}

@property (nonatomic, assign) int m_nOffset;
@property (nonatomic, assign) int m_nLimit;
@property (nonatomic, assign) int m_nTotal;

-(void)InitAscWithCount:(int)count Limit:(int)limit;
-(int)GetAscNextLimit:(int)count Cnt:(int)cnt;
-(int)GetAscNextLimit;

@end
